package com.ysg.enums;


import com.ysg.utils.YStringUtil;

/**
 * 模块
 */
public enum ModelEnum {
    ReTu(0,"ReTu"),
    world(1,"小世界")
    ;

    private final int type;
    private final String text;
    ModelEnum(int type, String text) {
        this.type = type;
        this.text = text;
    }
    public int getType() {
        return type;
    }

    public String getText() {
        return text;
    }

    public static ModelEnum getByType(int type) {
        for (ModelEnum typeEnum : ModelEnum.values()) {
            if (YStringUtil.eq(type, typeEnum.getType())) {
                return typeEnum;
            }
        }
        return null;
    }



}
